package com.itmeima.d14_extends_constructor;

class F{

    public F(String name,int age){

    }
}


class Z extends F{
    public Z(){
        super("张三",20);
        System.out.println("Z的无参构造方法");
    }

    public Z(int a){
        super("张三",20);
        System.out.println("Z的有参构造方法");
    }
}

public class Test {
    public static void main(String[] args) {
        Z z = new Z();
        Z z2 = new Z(1);
    }

}
